#include "widgetutils.h"

WidgetUtils::WidgetUtils()
{

}

void WidgetUtils::putListItem(QListWidget *listWidget, QStringList list)
{
    for (int i = 0; i < list.size(); i++) {
        QListWidgetItem *aitem = new QListWidgetItem(list[i]);
        aitem->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsEditable);
        listWidget->addItem(aitem);
    }
}
